package router

import (
	"firstdemo_go/api"
	"github.com/gin-gonic/gin"
)

func MysqlRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	BaseRouter := Router.Group("mysqldata")
	{
		BaseRouter.POST("AddPerson", api.AddPerson)
		BaseRouter.POST("DeletePerson", api.DeletePerson)
		BaseRouter.POST("UpdatePerson", api.UpdatePerson)
		BaseRouter.POST("FindPerson", api.FindPerson)
		BaseRouter.POST("ListPerson", api.ListPerson)
	}
	return BaseRouter
}
